import {MessageBox} from "element-ui";

function responseError(message) {
    MessageBox.confirm(message, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
        showCancelButton: false
    }).then(() => {
        window.location.href = "/"
    }).catch(() => {
        window.location.href = "/"
    });
}

export {
    responseError
}
